package com.dove.tinkerpatch;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.tinkerpatch.sdk.TinkerPatch;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_main_next).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this,Main2Activity.class));
            }
        });

        findViewById(R.id.btn_main_upload).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.i("king","fetchPatchUpdateAndPollWithInterval--main");
                TinkerPatch.with().fetchPatchUpdate(true);
            }
        });

    }
}
